{% if workorders %}
{% load i18n %}
<script type="text/javascript">

$(document).ready(function() 
    { 
        $("#workorderlist").tablesorter(); 
    } 
); 

</script>
<table id="workorderlist" class="tablesorter list">
	<thead>
		<tr>
			<th class="description">{% trans "Description" %}</th>
			<th class="status">{% trans "Status" %}</th>
			<th class="plannedStart">{% trans "Planned Start" %}</th>
			<th class="plannedEnd">{% trans "Planned End" %}</th>
		</tr>
	</thead>
	<tbody>
	{% for workorder in workorders %}
		<tr class="workorder">
			<td class="description">
				<a href="{% url posecco:workorder workorder.rfc.pk workorder.pk %}" />
					{{ workorder.description }}
				</a>
			</td>
			<td class="status">
				{{ workorder.get_status_display }}
			</td>
			<td class="plannedStart">
				{{ workorder.plannedStart }}
			</td>
			<td class="plannedEnd">
				{{ workorder.plannedEnd }}
			</td>
		</tr>
	{% endfor %}
	</tbody>
</table>
{% endif %}
{% if rfc_id != "0" %}
<!-- <a href="{% url posecco:workorder rfc.pk 0 %}" class="button">{% trans "Add WorkOrder" %}</a> -->
{% endif %}